package com.run.merchant.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.run.merchant.mapper.RunUserAddressMapper;
import com.run.merchant.domain.RunUserAddress;
import com.run.merchant.service.IRunUserAddressService;

/**
 * 用户地址信息Service业务层处理
 * 
 * @author run
 * @date 2025-05-20
 */
@Service
public class RunUserAddressServiceImpl implements IRunUserAddressService 
{
    @Autowired
    private RunUserAddressMapper runUserAddressMapper;

    /**
     * 查询用户地址信息
     * 
     * @param id 用户地址信息主键
     * @return 用户地址信息
     */
    @Override
    public RunUserAddress selectRunUserAddressById(Long id)
    {
        return runUserAddressMapper.selectRunUserAddressById(id);
    }

    /**
     * 查询用户地址信息列表
     * 
     * @param runUserAddress 用户地址信息
     * @return 用户地址信息
     */
    @Override
    public List<RunUserAddress> selectRunUserAddressList(RunUserAddress runUserAddress)
    {
        return runUserAddressMapper.selectRunUserAddressList(runUserAddress);
    }

    /**
     * 新增用户地址信息
     * 
     * @param runUserAddress 用户地址信息
     * @return 结果
     */
    @Override
    public int insertRunUserAddress(RunUserAddress runUserAddress)
    {
        return runUserAddressMapper.insertRunUserAddress(runUserAddress);
    }

    /**
     * 修改用户地址信息
     * 
     * @param runUserAddress 用户地址信息
     * @return 结果
     */
    @Override
    public int updateRunUserAddress(RunUserAddress runUserAddress)
    {
        return runUserAddressMapper.updateRunUserAddress(runUserAddress);
    }

    /**
     * 批量删除用户地址信息
     * 
     * @param ids 需要删除的用户地址信息主键
     * @return 结果
     */
    @Override
    public int deleteRunUserAddressByIds(Long[] ids)
    {
        return runUserAddressMapper.deleteRunUserAddressByIds(ids);
    }

    /**
     * 删除用户地址信息信息
     * 
     * @param id 用户地址信息主键
     * @return 结果
     */
    @Override
    public int deleteRunUserAddressById(Long id)
    {
        return runUserAddressMapper.deleteRunUserAddressById(id);
    }
}
